
import sys
import os
import socket

host = "127.0.0.1"
port = 8001
def Test():
	s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
	s.connect( (host,port) )
	print "connected"
	s.close()
	print "close"

Test()
